1   package com.iluwatar.generic;
2   
3   import com.iluwatar.WeatherType;
4   
5   public class GHobbits implements Race {
6       @Override
7       public void update(GWeather o, WeatherType weatherType) {
8           switch (weatherType) {
9               case COLD:
10                  System.out.println("The hobbits are shivering in the cold weather.");
11                  break;
12              case RAINY:
13                  System.out.println("The hobbits look for cover from the rain.");
14                  break;
15              case SUNNY:
16                  System.out.println("The happy hobbits bade in the warm sun.");
17                  break;
18              case WINDY:
19                  System.out.println("The hobbits hold their hats tightly in the windy weather.");
20                  break;
21              default:
22                  break;
23          }
24      }
25  }